home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************************
- * dcmdheader.c
- *
- * Copyright © 1997-1998 Red Shed Software. All rights reserved.
- * by Jonathan ‘Wolf’ Rentzsch (jon@redshed.net)
- *
- * Make sure this file is the first file in the project.
- *
- * I basically made up this code from trial-and-error since I couldn't find any
- * CodeWarrior-based dcmd sample code. It may not work in all cases, but it works so
- * far.
- *
- * You'll need the dcmdGlue.a.o object file and Dcmd.h header file to compile this code.
- * You can find it on the Developer Series Tool Chest CD in the MacsBug folder or maybe
- * on the web.
- *
- * Commenter Date Comment
- * --------- ----------------- -----------------------------------------------------
- * wolf Wed, Nov 5, 1997 Created.
- * wolf Tue, Nov 11, 1997 Made universal.
- *
- ****************************************************************************************/
-
- #include "Dcmd.h"
-
- extern pascal void main(dcmdBlock* paramPtr);
- extern void __Startup__(void);
-
- asm void __Startup__(void)
- {
- dc.w 3 /* version 3 dcmd */
- dc.w 2048 /* we want 2K of stack space */
- jmp main /* jump to the dcmd implementation */
- }